genetic: genetic.c point.o triangle.o geneticoperations.o point.h triangle.h color.h
	gcc -o genetic genetic.c point.o triangle.o geneticoperations.o -lSDL

point.o: point.h
	gcc -c point.c

triangle.o: triangle.h
	gcc -c triangle.c

geneticoperations.o: point.h point.o color.h
	gcc -c geneticoperations.c
	
	
.PHONY : clean
clean :
	rm genetic point.o triangle.o geneticoperations.o


